#ifndef APPGALG_H
#define APPGALG_H
#include "QList"


class AppgAlg
{
private:
    //滤波，巴特沃斯带通0.3-3hz,采样率500,用于找特征点
    double *a;
    double *b;
    double *x;
    double *y;
    //滤波，巴特沃斯带通0.3-10hz,采样率500,用于提取加速度脉搏波
    double *a1;
    double *b1;
public:
    AppgAlg();
    ~AppgAlg();
    void computePrensentPPG_APPG(QList<double>ppg);
    void computeAccIndex(int age);
    QList<double>Present_ppg;
    QList<double>Present_appg;
    int ActualLen=0;//实际脉搏波和加速度脉搏波长度
    QList<int>abcde;
    int VascularState;//血管阶段
    QList<double>SevenState;
    double DPI;//微分脉搏波指数
    double SP;//每搏输出量
    double BVT;//血管弹性
    double RBV;//残血量
    int VascularAge;//血管年龄
    QString res;
    double K;
};

#endif // APPGALG_H
